﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Template.Master" Inherits="System.Web.Mvc.ViewPage<JLL.China.Web.Models.HomeModel>" %>
<%@ Import Namespace="JLL.China.Web.Libraries" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <!--  start page-heading -->
    <div id="page-heading">
       
    </div>
    <div class="menu-nav">
        <% Html.RenderPartial("Measage");%>
    </div>
    <!-- end page-heading -->
    
     <!-- end page-heading -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="<%=Url.Content("~/Content/images/shared/side_shadowleft.jpg")%>" width="20"
                    height="300" alt="" />
            </th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;
            </td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="<%=Url.Content("~/Content/images/shared/side_shadowright.jpg")%>" width="20"
                    height="300" alt="" />
            </th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner ...................................................................... START -->
                     <div id="content-table-inner">
                    <%-- <% Html.RenderPartial("DiskSpace");%>--%>
                     <br style="clear: both"/>
                   <div id="dashboard-content-left">
                    <div id="pending-post-property-request"> 
                  
                     <%Html.RenderPartial("PostPending",this.Model.PropertyPending()); %>
                   
                    </div>
                    </div>
                    <div id="dashboard-content-right">
                    
                      <%Html.RenderPartial("PostReject", this.Model.PropertyReject()); %>
                  
                    </div>
                </div>
                <!--  end table-content  -->
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;
            </td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
    <!--  end table-content  -->
                  <!--  start content-table-inner ...................................................................... START -->
                  
          
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CSS" runat="server">
   <link href="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.css") %>" rel="stylesheet"
        type="text/css" />
    <link href="<%=Url.Content("~/Content/css/home.css") %>" rel="stylesheet"
        type="text/css" />
    <link href="<%=Url.Content("~/Content/css/widget.css") %>" rel="stylesheet"
        type="text/css" />
       
        <style type="text/css">
            .grid caption
            {
                font:bold 13px Arial;
                padding:8px;
                padding-left:0px;
                
            }
            .grid .rejected 
            {
                color:#BC141A;
            }
            .grid .pending 
            {
                color:#FF6600;
            }
            #message-blue
            {
                float:none !important;
            }
         .buttons
        {
            background-color: #FFFFFF;
            background-image: -moz-linear-gradient(center top , #FFFFFF 2%, #F0F0F0 2%, #DEDEDE 100%);
            border: 1px solid #969696;
            border-radius: 2px 2px 2px 2px;
            box-shadow: 0 1px 2px rgba(144, 144, 144, 0.4);
            color: #515151;
            cursor: pointer;
            margin-top:8px;
            font: bold 11px Tahoma;
            height: 28px;
            outline: 0 none;
            padding: 0 1em;
            text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
            vertical-align: middle;
            white-space: nowrap;
            word-wrap: normal;
            min-width:48px;
        }
        .buttons:hover
        {
            text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
            color: #818181;
            background-color: #fff;
            background-image: -moz-linear-gradient(top,  rgb(255,255,255) 2%, rgb(244,244,244) 2%, rgb(229,229,229) 100%);
            background-image: -webkit-gradient(linear, left top, left bottom, color-stop(2%,rgb(255,255,255)), color-stop(2%,rgb(244,244,244)), color-stop(100%,rgb(229,229,229)));
            background-image: -webkit-linear-gradient(top,  rgb(255,255,255) 2%,rgb(244,244,244) 2%,rgb(229,229,229) 100%);
            background-image: -o-linear-gradient(top,  rgb(255,255,255) 2%,rgb(244,244,244) 2%,rgb(229,229,229) 100%);
            background-image: -ms-linear-gradient(top,  rgb(255,255,255) 2%,rgb(244,244,244) 2%,rgb(229,229,229) 100%);
            background-image: linear-gradient(top,  rgb(255,255,255) 2%,rgb(244,244,244) 2%,rgb(229,229,229) 100%);
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
            border-color: #aeaeae;
            box-shadow: inset 0 1px 0 rgba(256,256,256,0.4),0 1px 3px rgba(0,0,0,0.5);
        }
        </style>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="JS" runat="server">

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.mapping.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.ui.core.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.ui.widget.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/ui.checkbox.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.bind.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.pngFix.pack.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.selectbox-0.5.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.selectbox-0.5_style_2.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.js")%>" type="text/javascript"></script>
     <script src="http://malsup.github.com/jquery.blockUI.js" type="text/javascript"></script>
    

    <script src="<%=Url.Content("~/Scripts/Home.js")%>" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function() {
            //
            $('a[title]').qtip();
            //
            $(".preview").click(function(e) {
                e.preventDefault();
                openWindow(this.href);
            });
            $(".post-rejected").fancybox({
                'modal': true,
                helpers: {
                    title: null
                }
            });



            var PostModel = function() {
                var self = this;
                self.ID = ko.observable();
                self.contentReject = ko.observable();
                self.save = function() {
                    self.ID($("#PropertyID").val());
                    if ($("#contentwhy").val().length == 0) {
                        $(".errors").show();
                        $("#contentwhy").attr('style', 'background: #FFEBE8;border: 1px solid #cc0000;');

                    } else {
                        var formM = $('#fcontent');
                        $("#whyrejet").block({ message: null });
                        $.ajax({
                            type: "POST",
                            cache: false,
                            url: BASE_URL + "Home/RejectAndSendEmail",
                            data: ko.toJSON(self),
                            contentType: 'application/json',
                            success: function(data) {

                                $("#contentwhy").val("");
                                $(".errors").hide();
                                $("#whyrejet").unblock();
                                $.fancybox.close();
                                alert("Save successfully");
                                window.location.href = window.location.href;
                            }
                        });
                    }
                }; //end
                self.cancel = function() {
                    //
                    $("#contentwhy").val("");
                    $(".errors").hide();
                    $("#contentwhy").attr('style', '');
                    $.fancybox.close();
                }
            }

            ko.applyBindings(new PostModel());
            //

        });
</script>
</asp:Content>


